all: main test1 test2 test3 test

main: main.cc
	g++ -o $@ $^

test1: test1.cc
	g++ -o $@ $^

test2: test2.cc
	g++ -o $@ $^

test3: test3.cc
	g++ -o $@ $^

test: test.cc
	g++ -o $@ $^

.PHONY: clean
clean:
	rm -f main